package cn.wolfcode.luowowo.comment.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Setter
@Getter
@Document("answer_comment")  //文档名称
public class AnswerComment implements Serializable{
        @Id //文档id
        private String id;  //mongodb默认的是id
        private Long aid;
        private Long destId;  //目的地id
        private String detailName; //目的地名称
        private Long userId;    //用户id
        private String nickname;  //用户名
        private String city; //用户所在城市
//        private int level;   //级别
        private String headImgUrl;     //头像
        private Date crateTime;    //创建时间
        private String context;      //评论内容
        private String title;      //评论内容
        private Long  titleId;//回答问题的id
        private List<String> aswerTag;//标签集合
        private int top=0;//顶数量
        private int remark=0;//评论信息
        private int read=0;//浏览数量
        private String coverUrl;
        private String content;//详细回答内容
        private Long vserion;// 1:最新回答 2：回答明细
}
